class BangumiWork < ActiveRecord::Base
  belongs_to :work
  belongs_to :bangumi
  validates_presence_of :work_id, :message => 'work_id is null'
  validates_presence_of :index, :message => 'index is null'
  validates_uniqueness_of :work_id, :message => 'same'
end
